package IDAL;

import Entity.Books;
import Entity.Reads;

import java.util.List;

/**
 * @Author Chen
 * @Date 2022/1/7 14:38
 * @Version 1.0
 */
public interface ReaderPort {

    //增：添加读者信息，sql语句填充列表
    public int addReader(Object...args);

    //根据读者编号，删除读者信息
    public int deleteReader(Object...args);

    //根据读者编号，修改读者信息
    public int updateReader(Object...args);


    //查：查询所有读者信息
    public List<Reads> selectAllReader();

    // 查：根据id查询读者信息
    public Reads selectReaderById(Object...args);

    //查：根据读者名查询读者信息,args sql语句填充列表
    public List<Reads> selectReaderByName(Object...args);

    //查：根据读者类型查询读者信息,args sql语句填充列表
    public List<Reads> selectReaderType(Object...args);
}
